<template>
  <a-config-provider>
    <div
      v-set-title="`${config.siteTitle}${$route.meta.title ? '-' + $route.meta.title : ''}`"
      v-set-meta:keywords="$route.meta.keywords"
      v-set-meta:description="$route.meta.description"
      class="global-controller-app"
    >
      <router-view />
    </div>
  </a-config-provider>
</template>

<script setup>
import 'dayjs/locale/zh-cn'
import config from '@/config'
import { useThemeStore } from '@/store/modules/theme'

const themeStore = useThemeStore()
// 设置主体，默认运行一次
themeStore.setTheme()
</script>
